package org.example.singleton;

public class hungerSingle_static {
    // 饿汉式 静态代码快
    private static final hungerSingle_static s;

    static {
        s = new hungerSingle_static();
    }

    private hungerSingle_static(){};

    public static hungerSingle_static getInstance(){
        return s;
    }
}
